.layout {
  min-height: 100vh;
}

.mainLayout {
  padding-top: 64px;
  min-height: 100vh;
  background: #f0f2f5;
}

.content {
  padding: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 64px);
}

.detailCard {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);

  :global(.ant-card-body) {
    padding: 0;
  }
}

.backButton {
  margin-bottom: 32px;
  padding: 0;
}

.header {
  text-align: center;
  margin-bottom: 40px;
  padding: 24px 0 32px;
  background: linear-gradient(180deg, #f5222d 0%, #cf1322 100%);
  margin: -40px -40px 32px;
  border-radius: 8px 8px 0 0;

  h1 {
    margin-bottom: 16px;
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .meta {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    display: flex;
    justify-content: center;
    gap: 32px;

    :global {
      .anticon {
        margin-right: 8px;
      }

      .ant-tag {
        background: rgba(255, 255, 255, 0.2);
        border: none;
        color: #fff;
      }
    }
  }
}

.redHeader {
  background: #cf1322;
  padding: 40px;
  border-radius: 8px 8px 0 0;
  color: #fff;
  text-align: center;
  position: relative;
}

.documentTitle {
  .orgName {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 16px;
  }

  :global(.ant-divider) {
    margin: 16px 0;
    border-color: rgba(255, 255, 255, 0.3);
  }

  h1 {
    font-size: 32px;
    font-weight: bold;
    margin: 0;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
}

.documentNumber {
  position: absolute;
  top: 24px;
  right: 40px;
  font-size: 16px;
  opacity: 0.9;
}

.documentContent {
  padding: 48px 64px;
  background: #fff;
  position: relative;

  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 4px;
    background: linear-gradient(90deg, transparent, #cf1322, transparent);
    opacity: 0.1;
  }
}

.contentWrapper {
  min-height: 300px;
  line-height: 2;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.85);
  text-align: justify;

  p {
    margin-bottom: 24px;
    text-indent: 2em;
  }
}

.attachments {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;

  h3 {
    font-size: 16px;
    font-weight: 600;
    color: #cf1322;
    margin-bottom: 16px;
  }

  .attachmentItem {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #f0f0f0;

    &:last-child {
      border-bottom: none;
    }
  }
}

.footer {
  margin-top: 64px;
  text-align: right;
  position: relative;
  padding-top: 40px;

  .stamp {
    position: absolute;
    right: 120px;
    top: 0;
    width: 120px;
    height: 120px;
    border: 2px solid #cf1322;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transform: rotate(-15deg);

    .stampContent {
      text-align: center;
      color: #cf1322;
      font-size: 16px;
      font-weight: bold;

      .stampDate {
        font-size: 14px;
        margin-top: 4px;
      }
    }
  }

  .date {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.85);
    padding-right: 24px;
  }
} 